<html>
<head><meta charset="utf-8"><title>Request textDocument/semanticTokens/full failed. · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html">Request textDocument/semanticTokens/full failed.</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209493148"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209493148" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209493148">(Sep 09 2020 at 10:16)</a>:</h4>
<p>when I try to use RA, I get an error:</p>
<div class="codehilite"><pre><span></span><code>[ERROR rust_analyzer::dispatch] unknown request: Request { id: RequestId(U64(4)), method: &quot;textDocument/semanticTokens/full&quot;, params: Object({&quot;textDocument&quot;: Object({&quot;uri&quot;: String(&quot;file:///home/matthias/vcs/github/rust-clippy/clippy_lints/src/utils/eager_or_lazy.rs&quot;)})}) }
[Error - 12:12:50] Request textDocument/semanticTokens/full failed.
  Message: unknown request
  Code: -32601
</code></pre></div>


<p>any idea what that means/how to fix that?</p>



<a name="209493182"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209493182" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209493182">(Sep 09 2020 at 10:16)</a>:</h4>
<p>Are you using the latest rust-analyzer extension and vscode version?</p>



<a name="209493303"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209493303" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209493303">(Sep 09 2020 at 10:18)</a>:</h4>
<p>I'm on todays nightly which ships RA and vsc 1.48.2, mmh</p>



<a name="209493555"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209493555" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209493555">(Sep 09 2020 at 10:22)</a>:</h4>
<p>The last sync was 8 days ago: <a href="https://github.com/rust-lang/rust/issues/76155">#76155</a></p>



<a name="209493583"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209493583" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209493583">(Sep 09 2020 at 10:22)</a>:</h4>
<p><a href="https://github.com/rust-analyzer/rust-analyzer/pull/5930">https://github.com/rust-analyzer/rust-analyzer/pull/5930</a> was merged 7 days ago</p>



<a name="209493594"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209493594" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209493594">(Sep 09 2020 at 10:22)</a>:</h4>
<blockquote>
<p>Migrate to the latest Semantic Tokens Proposal for LSP 3.16</p>
</blockquote>



<a name="209493786"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209493786" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209493786">(Sep 09 2020 at 10:26)</a>:</h4>
<p>Hm, I'm on RA f5a4a4b which does not have that commit</p>



<a name="209493893"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209493893" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209493893">(Sep 09 2020 at 10:27)</a>:</h4>
<p>guess I'm waiting on a sync then</p>



<a name="209494493"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209494493" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209494493">(Sep 09 2020 at 10:35)</a>:</h4>
<p>I recommend installing from the VS Code marketplace</p>



<a name="209494515"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209494515" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209494515">(Sep 09 2020 at 10:35)</a>:</h4>
<p>Which Code version was <a href="https://github.com/rust-analyzer/rust-analyzer/pull/5930">https://github.com/rust-analyzer/rust-analyzer/pull/5930</a> for? I never had any problems.</p>



<a name="209494521"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209494521" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209494521">(Sep 09 2020 at 10:35)</a>:</h4>
<p>I'll send an update PR regardless though, I forgot doing that on monday</p>



<a name="209502225"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209502225" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209502225">(Sep 09 2020 at 12:11)</a>:</h4>
<p>Yeah that's a breaking change for older clients</p>



<a name="209502393"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209502393" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209502393">(Sep 09 2020 at 12:13)</a>:</h4>
<p><span class="user-mention silent" data-user-id="203546">Laurențiu Nicola</span> <a href="#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E/near/209494515">said</a>:</p>
<blockquote>
<p>Which Code version was <a href="https://github.com/rust-analyzer/rust-analyzer/pull/5930">https://github.com/rust-analyzer/rust-analyzer/pull/5930</a> for? I never had any problems.</p>
</blockquote>
<p>The vscode version should not matter since the client extension and the server were bumped there and both speak the same LSP</p>



<a name="209841719"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209841719" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209841719">(Sep 11 2020 at 22:14)</a>:</h4>
<p>Hm, so I am still getting that error</p>



<a name="209841844"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209841844" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209841844">(Sep 11 2020 at 22:16)</a>:</h4>
<p>ok something is strange with my nightly</p>



<a name="209841860"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209841860" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209841860">(Sep 11 2020 at 22:16)</a>:</h4>
<p>hopefully it's that...</p>



<a name="209842012"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209842012" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209842012">(Sep 11 2020 at 22:18)</a>:</h4>
<p>mh no I am just confused because it's already past midnight here I think (but no new nightly yet because CEST != UTC)...<br>
I'm on <code>rustc 1.48.0-nightly (a1947b3f9 2020-09-10)</code></p>



<a name="209842057"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209842057" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209842057">(Sep 11 2020 at 22:19)</a>:</h4>
<p>yeah, so that should include the RLA update of <a href="https://github.com/rust-lang/rust/pull/76513">https://github.com/rust-lang/rust/pull/76513</a></p>



<a name="209842520"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209842520" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209842520">(Sep 11 2020 at 22:24)</a>:</h4>
<p>apparently there was one version inside ~/.cargo/bin/ and a different one in ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin  :-/</p>



<a name="209995993"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Request%20textDocument/semanticTokens/full%20failed./near/209995993" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Request.20textDocument.2FsemanticTokens.2Ffull.20failed.2E.html#209995993">(Sep 14 2020 at 12:17)</a>:</h4>
<p>Ah that would do it</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>